package co.fitstart.admin.service;

import java.util.List;

import com.demo2do.core.support.Page;

import co.fitstart.entity.principal.Principal;
import co.fitstart.entity.site.Site;

public interface SiteService {
    
    /**
     * 
     * @param code
     * @param page
     * @return
     */
    public List<Site> list(boolean code, Page page);
    
    /**
     * 
     * @param siteId
     * @return
     */
    public Site load(Long siteId);
    
    /**
     * 
     * @param site
     */
    public void edit(Site site);

    /**
     * list the sites managered by the principal
     * @param principal 大店长 or 运营主管
     * @return
     */
    public List<Site> listSite(Principal principal);
    
    /**
     * 
     * @return
     */
    public List<Site> loadAll();
    
    /**
     * 
     * @return
     */
    public List<String> loadAllCity();
    
    /**
     * 
     * @param site
     * @param managerName
     * @param managerMobile
     */
    public void create(Site site, String managerName, String managerMobile);

    /**
     * 
     * @return
     */
    public List<Site> list();
    
    /**
     * 
     * @param siteId
     * @return
     */
    public List<String> getSiteAllAppointTime(Long siteId);
}
